package com.jian.mall.produce.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jian.mall.common.utils.PageUtils;
import com.jian.mall.common.utils.R;
import com.jian.mall.produce.entity.BrandEntity;
import com.jian.mall.produce.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-08-17 13:22:53
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long brandId);

    R saveById(CategoryBrandRelationEntity categoryBrandRelation);

    void myUpdateById(CategoryBrandRelationEntity categoryBrandRelation);

    void updateByCategoryIdAndName(Long catId, String name);

    void updateByBrandIdAndName(Long brandId, String name);

    List<BrandEntity> selectBrandsByCatId(Long catId);
}

